﻿//删除【逻辑】收到的信息
var fnCustomDeleteData = function () {
    if (confirm("是否确认删除？")) {
        var row = fnGetSelectedRow();
        var SaveUrl = "/Crm/BSendSysNews.ashx?r=" + Math.random() + "&num=c&ID=" + row["ID"];
        YAHOO.util.Connect.asyncRequest('POST', SaveUrl, {
            success: function (msg) {
                if (msg.responseText == "0") {
                    alert("删除失败！");
                } else {
                    alert("删除成功！");
                    RefreshData();
                }
            },
            failure: function (error) {
                alert("数据错误：" + error.statusText);
            }
        }, null);
    }
    //YAHOO.example.container.dialog3.hide();
}


///查看短信内容
var fnShowNewsContent = function () {
    var row = fnGetSelectedRow();
    if (row == null) {
        alert("请选择一条短信！");
        return;
    }

    var pagetitle = "查看  " + row["createPeopleName"] + "  的信息";
    parent.addTabs(pagetitle, "/Crm/V_DatSysNewsInfo.aspx?ID=" +row["ID"] + "&choose=i");
    //parent.NeedRefreshPage = this;

}
   